package com.ruoyi.oa.mapper;

import com.ruoyi.oa.domain.OaMessage;
import com.ruoyi.oa.domain.vo.OaMessageVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * 消息管理Mapper接口
 *
 * @author ruoyi
 * @date 2023-07-31
 */
public interface OaMessageMapper extends BaseMapperPlus<OaMessageMapper, OaMessage, OaMessageVo> {

    @MapKey("user_id")
    public List<Map<String,Object>> getAllHasAuth(@Param("deptId") String deptId, @Param("nickName") String nickName);

    @MapKey("user_id")
    public List<Map<String,Object>> getAllNotAuth(@Param("deptId") String deptId, @Param("nickName") String nickName);



}
